-module(quek_utf16).
-export([to_utf8/1, from_utf8/1, to_code/1, to_byte/1]).


to_utf8(Utf16) ->
    quek_utf16_utf8:conv(Utf16).


from_utf8(Utf8) ->
    quek_utf8_utf16:conv(Utf8).


to_code([B1, B2|T]) ->
    <<Code:16>> = <<B1, B2>>,
    {Code, T}.


to_byte(Code) ->
    <<B1, B2>> = <<Code:16>>,
    [B1, B2].
